﻿@model INSE6260.OnlineBanking.Model.Payee.Payee
@{
    ViewBag.Title = "Edit Payee";
}
<h2>Edit Payee</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Payee</legend>
        @Html.HiddenFor(model => model.Id)
        <div class="editor-label">
            @Html.LabelFor(model => model.PayeeName.Name, "Payee Name")
        </div>
        <div class="editor-label">
            @Html.DisplayFor(model => model.PayeeName.Name)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.NickName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NickName)
            @Html.ValidationMessageFor(model => model.NickName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.AccountNo, "Account No")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AccountNo)
            @Html.ValidationMessageFor(model => model.AccountNo)
        </div>
        <p>
            <input type="submit" value="Save" />
            @Html.ActionLink("Cancel", "Index", "PayeeInfo",null, new { @class = "khbtn" })
        </p>
    </fieldset>
}
